﻿using SqlSugar;

namespace DoNet.System.Models
{
    /// <summary>
    /// 
    /// </summary>
    [SugarTable("Sys_TokenLog", "TokenLog表")]
    [Serializable]
    public class TokenLog
    {
        /// <summary>
        /// 自增
        /// </summary>
        public long LogId { get; set; }
        /// <summary>
        /// 旧令牌
        /// </summary>
        public string OldAccessToken { get; set; } = string.Empty;
        /// <summary>
        ///  旧令牌AccessToken过期时间（UTC）
        /// </summary>
        public DateTime OldAccessExpiresDate { get; set; }
        /// <summary>
        /// 新令牌
        /// </summary>
        public string NewAccessToken { get; set; } = string.Empty;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedDate { get; set; } = DateTime.Now;
    }
}
